#include <stdio.h>

int add(int begin, int end)
{
    int i = begin;
    int sum = 0;
    for(i = begin; i <= end; ++i)
    {
        sum += i;
    }

    return sum;
}

int main()
{
    printf("begin:\n");

    int c = add(1, 100);
    printf("add(1, 100) = %d\n", c);

    printf("end\n");

    return 0;
}
